package com.ruoyi.site.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 播放列对象 playlists
 * 
 * @author chuckeytang
 * @date 2025-08-17
 */
public class Playlists extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 播放列表ID */
    private Long playlistId;

    /** 播放列表标题 */
    @Excel(name = "播放列表标题")
    private String title;

    /** 播放列表描述 */
    @Excel(name = "播放列表描述")
    private String description;

    /** 封面图片URL */
    @Excel(name = "封面图片URL")
    private String imageUrl;

    /** 封面图片替代文本 */
    @Excel(name = "封面图片替代文本")
    private String imageAltText;

    /** 用于URL的友好名称 */
    @Excel(name = "用于URL的友好名称")
    private String slug;

    /** 播放列表创建者 */
    @Excel(name = "播放列表创建者")
    private String owner;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setPlaylistId(Long playlistId) 
    {
        this.playlistId = playlistId;
    }

    public Long getPlaylistId() 
    {
        return playlistId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }

    public void setImageAltText(String imageAltText) 
    {
        this.imageAltText = imageAltText;
    }

    public String getImageAltText() 
    {
        return imageAltText;
    }

    public void setSlug(String slug) 
    {
        this.slug = slug;
    }

    public String getSlug() 
    {
        return slug;
    }

    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("playlistId", getPlaylistId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("imageUrl", getImageUrl())
            .append("imageAltText", getImageAltText())
            .append("slug", getSlug())
            .append("owner", getOwner())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
